// Programming_Scala/src/ch03/match-boolean-script.java

val bools = List( true, false )

for ( bool <- bools ) {
  bool match {
    case true => println( "heads" )
    case false => println( "tails" )
    case _ => println( "something other than heads or tails (yike!)" )
  }
}
